package com.teamview.service;

/**
 * @author Lenl
 * @create 2021-06-01 22:28
 * 表示员工的状态
 */

/*
public class Status {

    private final String NAME;

    //构造器私有化，外部不能实例化


    private Status(String name) {
        this.NAME = name;
    }

    public static final Status FREE=new Status("FREE");
    public static final Status BUSY=new Status("BUSY");
    public static final Status VACATION=new Status("VACATION");
    public String getNAME(){
        return  NAME;
    }

    @Override
    public String toString() {
        return NAME;
    }
}
 */

/**
 * 用枚举类重新写Status
 */

public enum Status{
    FREE,BUSY,VACATION;
}
